package zuoye03;

public class FruitTest {

    public static void main(String[] args) {
        Fruit f1 = new Fruit("苹果","昭通",10);
        f1.name= "苹果";
//        f1.area="昭通";
//        f1.price=10;
              System.out.println("水果名：" + f1.getName()+  "  产地："+f1.getArea()+"  单价："  +f1.getPrice());

        Fruit f2 = new Fruit("香蕉","云南",9.9);
//        f2.name ="香蕉";
//        f2.area = "云南";
//        f2.price = 9.9;
        System.out.println("水果名：" + f2.getName()+"  产地："+f2.getArea()+"  单价："   +f2.getPrice());

        Fruit f3 = new Fruit( "西瓜","云南",5);
//        f3.name = "西瓜";
//        f3.area = "云南";
//        f3.price = 5;

        System.out.println("水果名：" + f3.getName()+"  产地："+f3.getArea()+"  单价："  +f3.getPrice());
    }


}
